<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>

<%@ include file="/core/taglibs2.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>
 

</head>

<body oncontextmenu="return false"><div class="loader"></div>
 										
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-comments-o"></i> 留言查看
						<span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"
									title="Classes used"> 
								</a>

							</div> 
						</span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">
						留言查看
					</h3>
				</div>
				 
				<div class="panel-body">
					
					<table class="table table-bordered table-hover table-striped display" id="example">

						<tbody>

							<tr>
								<td width="10%" style="text-align: right;">标题：</td>
								<td width="40%">${message.title}</td>
								
								<td width="10%" style="text-align: right;">状态：</td>
								<td width="40%">
									<c:if test="${message.type=='10'}"><font color="red">未处理</font></c:if>
									<c:if test="${message.type=='20'}"><font color="blue">已处理</font></c:if>
								</td>
							</tr>
							<tr>
								<td  style="text-align: right;">内容：</td>
								<td colspan="3"  style="text-align: left;">
									${message.content}
									<c:if test="${message.filePath!=null}">
										<br/>
										<a href="<%=basePath%>temp/${message.fileName}" target="_blank">
											<img src='<%=basePath%>temp/${message.fileName}' style="max-height: 200px;"/>
										</a>
									</c:if>
								</td>
							</tr>

						</tbody>


					</table>
				</div>
				
				 
			</div>
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">
						留言回复过程
					</h3>
				</div>
				 
				<div class="panel-body">
					
					<table class="table table-bordered table-hover table-striped display" id="example">

						<tbody>

<c:forEach items="${list}" var="o">
							<tr>
								<td width="10%">${o.operDate}:${memberLoginName}${adminLoginName}</td>
								<td width="90%">
									<div style="text-align:left;">
										${o.content}
										<c:if test="${o.filePath!=null}">
											<br/>
											<a href="<%=basePath%>temp/${o.fileName}" target="_blank">
												<img src='<%=basePath%>temp/${o.fileName}' style="max-height: 200px;"/>
											</a>
										</c:if>
									</div>						
								</td>
							</tr>
</c:forEach>	

						</tbody>


					</table>
				</div>
				
				 
			</div>
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">
						留言再次回复
					</h3>
				</div>
				 
				<div class="panel-body">
<form id="commitForm" name="commitForm" action="admin/info/messageShowAdd.shtml" method="post" enctype="multipart/form-data">
	 <jodd:form scopes="request" beans="message">
	 <input type="hidden"  id="id" name="id"  />					
					<table class="table table-bordered table-hover table-striped display" id="example">

						<tbody>

							<tr>
								<td style="text-align: right;width: 40%">内容：</td>
								<td>
									<textarea  id="adminContent" name="adminContent" style="width:70%;height:300px;" class="rich"></textarea>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">图片地址：</td>
								<td>
								<input type="file" id="file" name="file" />
								</td>
							</tr>

							<tr>
								<td style="text-align: right;width: 40%">密码：</td>
								<td>
									<input type="password"  id="myTwoPassword" name="myTwoPassword" ></input>
								</td>
							</tr>
							 
							<tr>
								<td colspan="2">
									<div style="color: red;text-align:center;">
										${retMsg}
									</div>
								</td>
							</tr>
							<tr>
								<td colspan="2" style="text-align: center;">
									<button type="submit" class="btn btn-success "> 提 交 </button>
									<button type="reset" class="btn btn-warning"> 重 置 </button>
								</td>
							</tr>
						

						</tbody>


					</table>
	</jodd:form>
</form>

				</div>
				
				 
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->


	
</body>
</html>